package com.ternnetwork.core.configuration.enums;

public enum IdGeneratorMessages{
	
	FAILED_MESSAGE_NAME_CAN_NOT_BE_DUPLICATE(0,"操作失败,主键名称已经存在，请重新填写!"),
	FAILED_MESSAGE_NAME_CAN_NOT_BE_EMPTY(1,"操作失败,主键名称不能为空!"),
	FAILED_MESSAGE_VALUE_MUST_BE_MORE_THAN_0(2,"操作失败,下一个值必须大于零!"),
	FAILED_MESSAGE_OBJECT_CAN_NOT_BE_DELETED(3,"操作失败,该对像不可被删除!");
	
	private  Integer index;
	
	private  String name;
	
    private IdGeneratorMessages(int index, String name) {
		this.index = index;
		this.name = name;
	}

    public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

 

}
